package com.shaoshaohuo.app.utils;

/**
 * Created by Administrator on 2017/6/5.
 */

public class ErroCodeUtils {
// 0是成功
    public static String errcode(int errcode){
        String codevalue="";
        switch (errcode){

            case 201:
                codevalue="手机号码不合法";
                break;
            case 220:
                codevalue="用户无收货地址";
                break;
            case 202:
                codevalue="操作频繁，请稍后再尝试";
                break;
            case 203:
                codevalue="验证码不合法";
                break;
            case 204:
                codevalue="验证码错误";
                break;
            case 5001:
                codevalue="用户不存在";
                break;
        }

        return codevalue;
    }
}
